//
//  CustomInExAlertView.m
//  Wallets Manager
//
//  Created by TungNguyen on 11/18/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import "CustomInExAlertView.h"

@interface CustomInExAlertView ()

@end

@implementation CustomInExAlertView

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (IBAction)cancelButtonPressed:(id)sender {
    [self.view removeFromSuperview];
}

- (IBAction)incomeButtonPressed:(id)sender {
    [self.view removeFromSuperview];
    [[NSNotificationCenter defaultCenter]postNotificationName:@"alertViewIncomePressed" object:nil];
}

- (IBAction)expenseButtonPressed:(id)sender {
    [self.view removeFromSuperview];
    [[NSNotificationCenter defaultCenter]postNotificationName:@"alertViewExpensePressed" object:nil];
}

@end
